import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/clientadminaccount/list', { params })
}
// 获取选项
export function GetOptionData() {
  return api.get('/api/clientadminaccount/optionlist')
}
// 添加
export function PostCreateAccount(params: any) {
  return api.post('/api/clientadminaccount/create', params)
}
// 获取详情数据
export function GetDataDetail(id: string) {
  return api.get(`/api/clientadminaccount/detail/${id}`)
}
// 修改状态
export function PatchListSort(params: any) {
  return api.patch(`/api/clientadminaccount/modifyrecstate`, params)
}
// 编辑信息
export function PutDetailsRedact(params: any) {
  return api.put(`/api/clientadminaccount/modify`, params)
}
